home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
djip
/
djip.ctl
next >
Wrap
Text File
|
1999-09-06
|
13KB
|
412 lines
VERSION 5.00
Begin VB.UserControl DJIp
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 1 'Fixed Single
ClientHeight = 465
ClientLeft = 0
ClientTop = 0
ClientWidth = 2070
LockControls = -1 'True
ScaleHeight = 465
ScaleWidth = 2070
ToolboxBitmap = "DJIp.ctx":0000
Begin VB.Frame Frame1
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 0 'None
Caption = "Frame1"
ForeColor = &H80000008&
Height = 240
Left = 50
TabIndex = 0
Top = 50
Width = 1845
Begin VB.TextBox txtOctet
Alignment = 2 'Center
Appearance = 0 'Flat
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 1
Left = 15
TabIndex = 1
Text = "255"
Top = 0
Width = 375
End
Begin VB.TextBox txtOctet
Alignment = 2 'Center
Appearance = 0 'Flat
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 2
Left = 495
TabIndex = 2
Text = "255"
Top = 0
Width = 375
End
Begin VB.TextBox txtOctet
Alignment = 2 'Center
Appearance = 0 'Flat
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 3
Left = 975
TabIndex = 3
Text = "255"
Top = 0
Width = 375
End
Begin VB.TextBox txtOctet
Alignment = 2 'Center
Appearance = 0 'Flat
BorderStyle = 0 'None
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 4
Left = 1455
TabIndex = 4
Text = "255"
Top = 0
Width = 375
End
Begin VB.Label lblDot
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "."
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 345
Index = 1
Left = 390
TabIndex = 7
Top = -90
Width = 105
End
Begin VB.Label lblDot
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "."
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 345
Index = 2
Left = 870
TabIndex = 6
Top = -90
Width = 105
End
Begin VB.Label lblDot
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
Caption = "."
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 345
Index = 3
Left = 1350
TabIndex = 5
Top = -90
Width = 105
End
End
End
Attribute VB_Name = "DJIp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Option Explicit
Option Base 1
Enum ipBorder
ccNone = 0
ccFixedSingle = 1
End Enum
Enum AppearanceStyle
ccFlat = 0
cc3D = 1
End Enum
Private m_BackColor As OLE_COLOR
Private m_ForeColor As OLE_COLOR
Private m_ValidIp As Boolean
'Event Declarations:
Event Click()
Attribute Click.VB_Description = "Occurs when the user presses and then releases a mouse button over an object."
Event Change()
Attribute Change.VB_Description = "Occurs when the contents of a control have changed."
Public Property Get BackColor() As OLE_COLOR
Attribute BackColor.VB_Description = "Returns/sets the background color used to display text and graphics in an object."
BackColor = m_BackColor
End Property
Public Property Let BackColor(ByVal New_BackColor As OLE_COLOR)
Dim intX As Integer
Dim intC As Integer
intC = txtOctet.Count
For intX = 1 To intC
txtOctet(intX).BackColor() = New_BackColor
If intX < intC Then lblDot(intX).BackColor = New_BackColor
Next
m_BackColor = New_BackColor
PropertyChanged "BackColor"
End Property
Public Property Get ForeColor() As OLE_COLOR
Attribute ForeColor.VB_Description = "Returns/sets the foreground color used to display text and graphics in an object."
ForeColor = m_ForeColor
End Property
Public Property Let ForeColor(ByVal New_ForeColor As OLE_COLOR)
Dim intX As Integer
Dim intC As Integer
intC = txtOctet.Count
For intX = 1 To intC
txtOctet(intX).ForeColor() = New_ForeColor
If intX < intC Then lblDot(intX).ForeColor = New_ForeColor
Next
m_ForeColor = New_ForeColor
PropertyChanged "ForeColor"
End Property
'WARNING! DO NOT REMOVE OR MODIFY THE FOLLOWING COMMENTED LINES!
'MappingInfo=UserControl,UserControl,-1,Enabled
Public Property Get Enabled() As Boolean
Attribute Enabled.VB_Description = " Returns/sets a value that determines whether an object can respond to user-generated events."
Enab